{include file="header/index" /}
<meta charset="UTF-8">
<!--导航end-->
<div class="container bgwhite relative">
	<div class=" mt20 mb20 console-top clearfix">
		<p class="col-127 fs14 fl"><img class="fl mr10 mt2" src="__IMG__/icon-gg.png">系统公告</p>
		<p class="fl ml30 console-top-web ellipsis">{$noticeInfo.title|msubstr=0,120}</p>
		<p class="fl"><img src="__IMG__/new.png"><a class="fs14 ml20 col-666" href="{:url('announce/index')}">查看更多>></a></p>
		<p class="fr cursor" onclick="deteleCon(this)"><img src="__IMG__/guanbi.png"></p>
	</div>
	<h2 class="mail-title mt20 mb20">操作台</h2>
	<div class="console-head clearfix">
		<div class="fl clearfix">
			<p class="fl mr10"><img src="__IMG__/yh-icon.png"></p>
			<p class="fl mt5">
				<span>今日新增用户数:<i>{$data.New_subscribers_today}</i></span>
				<span>现有用户总数:<i>{$data.Total_number_existing_users}</i></span>
			</p>
		</div>
		<div class="fl clearfix">
			<p class="fl mr10"><img src="__IMG__/yh-icon.png"></p>
			<p class="fl mt5">
				<span>今日新增工程人员数:<i>{$data.new_engineers_number_today}</i></span>
				<span>现有工程人员总数:<i>{$data.Total_number_existing_engineers}</i></span>
			</p>
		</div>
		<div class="fl clearfix">
			<p class="fl mr10 mt5"><img src="__IMG__/xzqy-icon.png"></p>
			<p class="fl">
				<span>今日新增行政区域数:<i>{$data.new_Administrative_number_today}</i></span>
				<span>现有行政区域数:<i>{$data.Total_number_existing_Administrative}</i></span>
			</p>
		</div>
	</div>

	<div class="mt20 mb20 console-center clearfix">
		<div class="console-left relative">
			<p class="console-left-top relative">今日完成工单 {$data.Total_work_order_completed_today}<img src="__IMG__/console-left.png"></p>
			<ul class="clearfix">
				<li class="fl">
					<a href="#" onclick="Finish_Work_Order_today('yes',3)">
						<span>新装工单数</span>
						<span>{$data.Finish_the_new_job_today}</span>
					</a>
				</li>
				<li class="fl" onclick="Finish_Work_Order_today('yes',2)">
					<a href="#">
						<span>换芯工单数</span>
						<span>{$data.Finish_the_change_today}</span>
					</a>
				</li>
				<li class="fl">
					<a href="#" onclick="Finish_Work_Order_today('yes',1)">
						<span>续费工单数/总金额</span>
						<span>{$data.Today_the_completion_of_renewal_orders}/¥{$data.Total_Money}</span>
					</a>
				</li>
				<li class="fl">
					<a href="#" onclick="Finish_Work_Order_today('yes',5)">
						<span>移机工单数</span>
						<span>{$data.The_singular_shift_completed_today}</span>
					</a>
				</li>
				<li class="fl">
					<a href="#" onclick="Finish_Work_Order_today('yes',6)">
						<span>维修工单数</span>
						<span>{$data.Completed_number_maintenance_workers_today}</span>
					</a>
				</li>
				<li class="fl">
					<a href="#" onclick="Finish_Work_Order_today('yes',4)">
						<span>拆机工单数</span>
						<span>{$data.Complete_teardown_orders_today}</span>
					</a>
				</li>
				<li class="fl">
					<a href="#" onclick="Finish_Work_Order_today('yes',7)">
						<span>续费+维修工单数</span>
						<span>{$data.Today_completion_maintenance_renewal_singular}</span>
					</a>
				</li>
				<li class="fl">
					<a href="#" onclick="Finish_Work_Order_today('yes',8)">
						<span>换芯+维修工单数</span>
						<span>{$data.Completed_today_change_core_repair_singular}</span>
					</a>
				</li>
			</ul>

		</div>
		<div class="console-right relative">
			<p class="console-right-top relative">今日未完成工单 {$data.Total_work_order_not_completed_today}<img src="__IMG__/console-right.png"></p>
			<ul class="clearfix">
				<li class="fl">
					<a href="#" onclick="Finish_Work_Order_today('no',3)">
						<span>新装工单数</span>
						<span>{$data.Today_singular_number_new_workers_not_completed}</span>
					</a>
				</li>
				<li class="fl">
					<a href="#" onclick="Finish_Work_Order_today('no',2)">
						<span>换芯工单数</span>
						<span>{$data.Today_odd_worker_not_completed}</span>
					</a>
				</li>
				<li class="fl">
					<a href="#" onclick="Finish_Work_Order_today('no',1)">
						<span>续费工单数</span>
						<span>{$data.Today_not_complete_renewal_orders}</span>
					</a>
				</li>
				<li class="fl">
					<a href="#" onclick="Finish_Work_Order_today('no',5)">
						<span>移机工单数</span>
						<span>{$data.Today_singular_shift_not_complete}</span>
					</a>
				</li>
				<li class="fl">
					<a href="#" onclick="Finish_Work_Order_today('no',6)">
						<span>维修工单数</span>
						<span>{$data.Incomplete_number_repairman_today}</span>
					</a>
				</li>
				<li class="fl">
					<a href="#" onclick="Finish_Work_Order_today('no',4)">
						<span>拆机工单数</span>
						<span>{$data.Complete_not_teardown_orders_today}</span>
					</a>
				</li>
				<li class="fl">
					<a href="#" onclick="Finish_Work_Order_today('no',7)">
						<span>续费+维修工单数</span>
						<span>{$data.Today_not_completion_maintenance_renewal_singular}</span>
					</a>
				</li>
				<li class="fl">
					<a href="#" onclick="Finish_Work_Order_today('no',8)">
						<span>换芯+维修工单数</span>
						<span>{$data.Completed_not_today_change_core_repair_singular}</span>
					</a>
				</li>
			</ul>
		</div>
	</div>
</div>

<script>
    function deteleCon(obj){
        $(obj).parents(".console-top").remove()
    }

    //跳转对应的工单
    function Finish_Work_Order_today(assigned,work_order_type) {
        var mydate = new Date();
        var year = parseInt(mydate.getFullYear());
        var nowTime = "" + year + "-";
        nowTime += (mydate.getMonth()+1)>9?(mydate.getMonth()+1):'0'+(mydate.getMonth()+1);
        nowTime += "-";
        nowTime += (mydate.getDate())>9?(mydate.getDate()):'0'+(mydate.getDate());
        var id = 15;//运营中心-菜单栏
        var uid = '#a' + id;
        $(uid, window.parent.document).parent().click();
        $(uid, window.parent.document).click();
        if (assigned == 'yes'){
            work_order_status = 12;
        }else {
            work_order_status = 13;
        }
        $("#assigned",window.parent.document).val(assigned);
        $("#work_order_type",window.parent.document).val(work_order_type);
        $("#work_order_status", window.parent.document).val(work_order_status);
        $("#startUpdateTime", window.parent.document).val(nowTime);
        if (assigned == 'yes'){
            $("#mainFrame",window.parent.document).attr('src','/operation/workorder/assigned.html');
        }else {
            $("#mainFrame",window.parent.document).attr('src','/operation/workorder/unassigned.html');
        }
    }
</script>
</body>
</html>
